import request from '@/utils/request'

// 查询值班记录列表
export function listDutyrecord(query) {
  return request({
    url: '/dfx/dutyrecord/list',
    method: 'get',
    params: query
  })
}

// 查询值班记录详细
export function getDutyrecord(id) {
  return request({
    url: '/dfx/dutyrecord/' + id,
    method: 'get'
  })
}

// 新增值班记录
export function addDutyrecord(data) {
  return request({
    url: '/dfx/dutyrecord',
    method: 'post',
    data: data
  })
}

// 修改值班记录
export function updateDutyrecord(data) {
  return request({
    url: '/dfx/dutyrecord',
    method: 'put',
    data: data
  })
}

// 删除值班记录
export function delDutyrecord(id) {
  return request({
    url: '/dfx/dutyrecord/' + id,
    method: 'delete'
  })
}
